package com.zelma.house.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zelma.common.utils.PageUtils;
import com.zelma.common.utils.Query;

import com.zelma.house.dao.OrderTypeDao;
import com.zelma.house.entity.OrderTypeEntity;
import com.zelma.house.service.OrderTypeService;


@Service("orderTypeService")
public class OrderTypeServiceImpl extends ServiceImpl<OrderTypeDao, OrderTypeEntity> implements OrderTypeService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<OrderTypeEntity> page = this.page(
                new Query<OrderTypeEntity>().getPage(params),
                new QueryWrapper<OrderTypeEntity>()
        );

        return new PageUtils(page);
    }

}